import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
import 'weui'
import 'react-weui/build/packages/react-weui.css'
import User from'./User'
import {Routes , Route ,Link} from 'react-router-dom'
import Address from './Address'
function App() {
  const [count, setCount] = useState(0)

  return (
    <div className="App">
      {/* <User/> */}
      {/* 一切皆组件  -> 先有路由 -> 再有页面级别组件 -> 组件构成页面 路由配置 */}
      <Link to ="/user">用户</Link>
      <Routes>
        <Route path='/user' element={<User/>}></Route>
        <Route path='/address' element={<Address/>}></Route>
      </Routes>
    </div>
  )
}

export default App
